include "serv.thrift"
include "sslCertificate.thrift"
namespace java com.broada.apm.thrift.service
service ServiceController {
	list<serv.Service> getServiceByAppId(1: string appId),
	serv.Service saveService(1: serv.Service serv),
	serv.Service saveDisService(1: serv.Service serv),
	serv.Service getDisServiceById(1: string id),
	list<serv.Service> getDisServiceByIpNum(1: i64 ipNum),
	serv.Service deleteService(1: serv.Service serv),
	list<serv.Service> deleteServiceByAppId(1: string appId),
	serv.Service deleteDiscoveryService(1: serv.Service serv),
	serv.Service getServiceById(1: string serviceId),
	list<serv.Service> getDisServiceByCondition(1: serv.Service serv, 2: string orderBy, 3: bool desc),
	list<serv.Service> getDisServiceByIpAndPort(1: string servIp, 2: i32 servPort),
	list<serv.Service> getDisServiceByKeyWord(1: serv.Service serv, 2: string keyWord, 3: string orderBy, 4: bool desc),
	list<serv.Service> getDisServiceByProtocal(1: serv.Service serv, 2: string orderBy, 3: bool asc),
	list<serv.Service> getChildServiceByClusterId(1: string clusterId),
	list<serv.Service> getTopoServiceBySerivceId(1: string id),
	list<serv.Service> getAllServicesNotCluster(),
	sslCertificate.SSLCertificate saveSSLCertificate(1: sslCertificate.SSLCertificate sslCertificate),
	sslCertificate.SSLCertificate deleteSSLCertificate(1: sslCertificate.SSLCertificate sslCertificate),
	sslCertificate.SSLCertificate getSSLBySericeId(1: string serviceId),
	serv.Service getAppServiceByIpAndPort(1: string appId, 2: string ip, 3: i32 port)

}